package com.roncoo.eshop.listener;

import com.roncoo.eshop.thread.RequestProcessorThreadPool;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * 系统初始化监听器
 *
 * @author john
 * @date 2020/11/3 - 15:19
 */
public class InitListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
//        System.out.println("=== 系统初始化 ===");
        RequestProcessorThreadPool.init();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
//        System.out.println("=== 系统销毁 ===");
    }
}
